using UnityEngine;

public class ButResorePurchase : MonoBehaviour
{
	private BoxCollider collider;

	private void Awake()
	{
		collider = GetComponent<BoxCollider>();
	}

	private void OnEnable()
	{
		collider.enabled = true;
	}

	private void OnClick()
	{
		collider.enabled = false;
		RestorePurchases.instance.RestoreAll(delegate
		{
			collider.enabled = true;
		});
	}
}
